Platform Explorer / Nuxeo Platform 2021.7

Operation Document.AddToCollection (Add document to collection)

Description

Add a list of documents in a collection. No value is returned.
Operation id Document.AddToCollection
AliasesCollection.AddToCollection
Category Document
Label Add document to collection
Requires
Since

Parameters

Name Description Type Required Default value
collection document yes  

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.collections.AddToCollectionOperation
Contributing Component org.nuxeo.ecm.core.automation.features.operations

JSON Definition

{
  "id" : "Document.AddToCollection",
  "aliases" : [ "Collection.AddToCollection" ],
  "label" : "Add document to collection",
  "category" : "Document",
  "requires" : null,
  "description" : "Add a list of documents in a collection. No value is returned.",
  "url" : "Document.AddToCollection",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "collection",
    "description" : null,
    "type" : "document",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}